<h2 class="pink">活动分类 &middot;&nbsp; &middot;&nbsp; &middot;&nbsp; &middot;&nbsp; &middot;&nbsp; &middot;&nbsp;</h2>
<ul>
  <% Event.categories.each_with_index do |cat,i| -%>
    <li><%= link_to cat, category_events_path(:cat => i) %>(<%= (tmp = categories_count.find{|c| c.category == i}) ? tmp.count : 0 %> )</li>
  <% end -%>
</ul>